import Vue from 'vue';
import Router from 'vue-router';
import Home from '../views/Home.vue';
import Main from '../views/Main.vue'

Vue.use(Router);

export default new Router({
    mode: 'history', //用此模式url上没有#标识

    routes: [

        {
            path: '/',          
            component: Home,
            children:[{
                path:'',
                component: Main,
                name: 'home',
            }]
        },



    ]

});



